package com.spring.springdemo.annotation.controller;

import com.spring.springdemo.annotation.aop.MathCalculator;
import com.spring.springdemo.annotation.example.pojo.Log;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class TestController {

    @Resource
    private MathCalculator mathCalculator;

    @RequestMapping("test")
    public void test(){
        mathCalculator.div(new Log(),2);
    }

}
